    @foreach ($users as $user)
        <div class="checkbox">
            {{ Form::checkbox('user_id[]', $user->id, $group->users->contains($user->id)) }}
            {{ $user->username }}
        </div>
    @endforeach
    
    @foreach ($resources as $resource)
        <div class="checkbox">
            {{ Form::checkbox('resource_id[]', $resource->id, $group->resources->contains($resource->id)) }}
            {{ $resource->name }}
        </div>
    @endforeach